package com.wsj.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.wsj.util.page.PageResultSet;
import com.wsj.web.vo.homeSite.HomeSiteCommendCompany;

public interface IHomeSiteCommendCompanyDao {

	
public void saveOrUpdate(HomeSiteCommendCompany homeSiteCommendCompany) throws DataAccessException;
	
	public void del(HomeSiteCommendCompany homeSiteCommendCompany) throws DataAccessException;
	
	public HomeSiteCommendCompany loadById(Integer id) throws DataAccessException;
	
	/**
	 * 第一部分 通过 comType =’zst’ , isCommend=1 , isHot=1 , isPic!=1 按照排序字段排序
	 * 中间两张图片 通过 comType =’zst’ , isCommend=1 , isHot=1 , isPic==1  按照排序字段排序 
	 * 第三部分 通过 comType =’zst’ , isCommend=1 , isHot!=1 , isPic!=1 按照排序字段排序. 
	 * 
	 * 2008.11.07 GBX join 推荐企业显示位置:String bmCommendCompanySiteStr
	 * */
	public List<HomeSiteCommendCompany> loadList(String comName,String comType,Short isHot,Short isCommend,
			Short isPic,String bmCommendCompanySiteStr, Integer top) throws DataAccessException;
	
	public PageResultSet loadPage(String comName,String comType,Short isHot,Short isCommend,
			Short isPic,String bmCommendCompanySiteStr, Integer page,Integer pageSize) throws DataAccessException;
	
}
